<template>
  <avue-form :option="option"></avue-form>
</template>
<script>
export default {
  data () {
    return {
      option: {
        column: [{
          label: '开关',
          prop: 'switch',
          type: 'switch',
          props: {
            label: 'name',
            value: 'code'
          },
          dicData: [{
            name: '关',
            code: 0
          }, {
            name: '开',
            code: 1
          }]
        }]
      }
    }
  }
}
</script>